package org.duoyi.striver.service;

import lombok.Getter;
import org.duoyi.striver.consts.TaskState;


public class TaskChainItem {
    @Getter
    private final Task task;

    public TaskState getState() {
        return task.getState();
    }

    public TaskChainItem(Task task) {
        this.task = task;
    }

    public void startTask() {
        task.start();
    }

}
